from django.urls import path, re_path
from . import views

urlpatterns = [
    # api/auth/
    path('auth/', views.auth),

    # api/auth/
    path('login/', views.login),

    # 手动进行路由分发
    path('user/', ([
                        path('add/', views.user),
                        path('del/', views.user),
                        path('edit/', views.user),
                        path('list/', views.user),
                   ], None, None)),

    path('index/', views.index),
    path('index001/', views.index001),
    path('index002/', views.index002),
    path('index003/', views.index003),
    path('index004/', views.index004),
]